<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <script src="/js/jquery-3.3.1.min.js"></script>
        <script>
            $(function(){

                $("#login").click(function(){

                    $.ajax({

                        url:"http://127.0.0.1:9001/sso/login",
                        method:"post",
                        data:{
                            "username":$("#username").val(),
                            "password":$("#password").val()
                        },
                        success:function(result){
                            if("200"==result.responseCode){
                                window.location="xxxx";
                            }
                            if("500"==result.responseCode){
                                $("#message").text(result.message);
                            }
                        }

                    });

                });

            });
        </script>
    </head>
    <body>
        <form>
            用户名：<input id="username" type="text" name="username"/><br/>
            密码：<input id="password" type="password" name="password"/><br/>
            <input id="login" type="button" value="登录"/>
        </form>
        <div id="message"></div>
    </body>
</html>